package com.yuedou.api.commons.base;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.HashMap;
import java.util.Map;

public class SearchCondition extends QueryWrapper {
	private static final long serialVersionUID = 6271030916371481926L;

	private Map<String, Object> condition = new HashMap<>();

    /**
     * 获取实例
     */
    public static SearchCondition create() {
        return new SearchCondition();
    }

	public Object get(String key) {
		return condition.get(key);
	}

	public void put(String key, Object value) {
		condition.put(key, value);
	}

	public Map<String, Object> getCondition() {
		return condition;
	}
}
